﻿define(function (require, exports, module) {
    var IError = require('iError');

    var m_errorCallback;

    exports.loadAsync = eval(Wind.compile('async', function () {
        $await(IError.renderAsync());

        //由于缺少错误素材 因此先用延迟一段时间然后退回登录来替代
        $await(Wind.Async.sleep(500));
        m_errorCallback();
    }));

    exports.setErrorCallback = function (callback) {
        m_errorCallback = callback;
    };
});